<?php
/* SVN FILE: $Id: player_casualty.php 250 2010-06-17 10:55:41Z gregory.rome $ */
/**
 * Model.
 *
 * @todo Add file description.
 *
 * cBBweb : Digital Blood Bowl league interface (http://code.google.com/p/cbbweb/)
 * Copyright 2009-2010, Grégory Romé.
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @filesource
 * @copyright     Copyright 2009-2010, Grégory Romé.
 * @link          http://code.google.com/p/cbbweb/ cBBweb Project
 * @package       cbbweb
 * @subpackage    cbbweb.models
 * @version       $Revision: 250 $
 * @modifiedby    $LastChangedBy: gregory.rome $
 * @lastmodified  $Date: 2010-06-17 10:55:41 +0000 (Thu, 17 Jun 2010) $
 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
 */

/**
 * Model.
 *
 * @todo Add model description.
 *
 * @package       cbbweb
 * @subpackage    cbbweb.controllers
 */
class PlayerCasualty extends AppModel {

	var $name = 'PlayerCasualty';
	var $primaryKey = 'ID';
	var $useTable = 'Player_Casualties';

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'Player' => array(
			'className' => 'Player',
			'foreignKey' => 'player_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'PlayerCasualtyType' => array(
			'className' => 'PlayerCasualtyType',
			'foreignKey' => 'player_casualty_type_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Calendar' => array(
			'className' => 'Calendar',
			'foreignKey' => 'calendar_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

}
?>